package com.atguigu.registration.hosp.service;

import com.atguigu.registration.model.hosp.Schedule;
import com.atguigu.registration.vo.hosp.ScheduleOrderVo;
import com.atguigu.registration.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/4/26 3:38 PM
 */
public interface ScheduleService {
    void save(Map<String, Object> paramMap);

    Page<Schedule> findPageSchedule(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    void remove(String hoscode, String hosScheduleId);

    Map<String, Object> getRuleSchedule(long page, long limit, String hoscode, String depcode);

    /** 根据医院编号、科室编号和工作日期查询排班详情 */
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);

    /** 获取可预约的排班数据 */
    Map<String, Object> getBookingScheduleRule(int page, int limit, String hoscode, String depcode);

    Schedule getById(String scheduleId);

    /** 根据排班id获取预约下单数据 */
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);

    /** 更新排班信息 */
    void update(Schedule schedule);

    Schedule getScheduleId(String scheduleId);
}
